package com.example.readandwriteseparation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.readandwriteseparation.enitiy.Orders;

import java.util.List;

/**
 * 订单
 *
 * @author qingyan 2021-09-02
 */
public interface IOrdersService extends IService<Orders> {

    void insert(Orders orders);

    List<Orders> list();

    List<Orders> listByMaster();

    void batchSave(List<Orders> orders);

    void switchDb();

}
